<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Update Details</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid>
                <h:outputText value="User ID:" />
                <h:inputText id="userID" size="10" readonly="true" disabled="true" value="#{customerManagedBean.custID}" />
                
                <h:outputText value="Name: " />
                <h:inputText id="userName" size="25" readonly="true" disabled="true" value="#{customerManagedBean.custName}" />
                
                <h:outputText value="Address: " />
                <h:inputText id="userAddress" size="50" required="true" requiredMessage="Please enter your Address" value="#{customerManagedBean.custAddress}" />
                
                <h:outputText value="Phone: " />
                <h:inputText id="userPhone" size="10" required="true" requiredMessage="Please enter your Phone" value="#{customerManagedBean.custPhone}" />
                
                <h:outputText value="Password: " />
                <h:inputSecret id="userPassword" size="10" value="#{customerManagedBean.custPass}" />
            </h:panelGrid>
            
            <h:commandButton id="submit" value="update" action="#{customerManagedBean.update}" />
        </h:form>
    </h:body>
</html>

